package org.dong.samples.util;
import java.text.SimpleDateFormat;
import java.util.Date;

public class StringToDate {
	public final static Date getString(String time) throws Exception {
		java.text.SimpleDateFormat formatter = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss");
		Date date =  formatter.parse(time);
		return date;
	}
}
